// 获取验证码
import 'package:flutter_small_project/constants/index.dart';
import 'package:flutter_small_project/utils/RequestDio.dart';

// 获取验证码
getCodeAPI(params){
  return requestDio.get(HTTP_PATH.GET_CODE,params:params);
}

//  登录
loginAPI(data){
  return requestDio.post(HTTP_PATH.LOGIN,data:data);
}

// 获取用户信息
getUserInfoAPI(){
  return requestDio.get(HTTP_PATH.GET_USER_INFO);
}

// 修改用户信息
updateUserInfoAPI(data){
  return requestDio.put(HTTP_PATH.GET_USER_INFO,data:data);
}

// 上传用户头像
uploadUserAvatarAPI(data){
  return requestDio.upload(HTTP_PATH.UPLOAD_AVATAR,data:data);
}